﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Threading;
using BirthdayRemainder.WinService;
namespace BRExtention
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            if (args.Length == 0)
            {
                return;
            }

            bool bCreate;
            //保证程序只能运行一个
            using (Mutex mu = new Mutex(true, Application.ProductName, out bCreate))
            {
                if (bCreate)
                {
                    BRService winService = new BRService();
                    winService.StartService();
                    /*
                    Application.EnableVisualStyles();
                    Application.SetCompatibleTextRenderingDefault(false);
                    Application.Run(new FrmMain());
                
                     */
                }
            }
        }
    }
}
